package com.olap.starter.util.sql;

import com.olap.starter.controller.admin.luckycola.utils.OracleQuery;
import org.springframework.stereotype.Service;

@Service
public class OracleTaleSqlService implements TaleSqlService {

    private String tableSql = OracleQuery.DB_TABLE;
    private String columnSql = OracleQuery.DB_COLUMN;

    @Override
    public String getTablesSql(String dbName) {
        return String.format(tableSql, dbName);
    }

    @Override
    public String getColumnsSql(String dbName, String tableName) {
        return String.format(columnSql, dbName, dbName, dbName, dbName, tableName);
    }
}
